package com.hikvision.hrms.service;

import com.hikvision.hrms.mapper.PositionMapper;
import com.hikvision.hrms.model.Position;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : yangliu449
 * @date :  2019/2/22
 */
@Service
public class PositionService {
    @Autowired
    PositionMapper positionMapper;

    public Integer deletePosition(Integer id){
        return positionMapper.deletePosition(id);
    };
    public Integer updatePosition(Position position){
        return positionMapper.updatePosition(position);
    };
    public Integer addPosition(Position position){
        return positionMapper.addPosition(position);
    };
    public List<Position> positionData(){
        return positionMapper.positionData();
    };

}
